how food is converted into energy